<template>
  <span @click="clickName">first1</span>
  <router-view />
</template>
<script lang="ts">
import { useRouter } from 'vue-router'
import { defineComponent } from 'vue'

export default defineComponent({
  setup(props) {
    const useRouters = useRouter()
    const clickName = () => {
      useRouters.push({
        path: '/first1/homeDetail'
      })
    }
    return {
      clickName
    }
  }
})
</script>